package com.jxtpro.service;

import com.jfinal.plugin.activerecord.Page;
import com.jxtpro.model.User;
/**
 * 用户业务
 * @author x
 *
 */
public class UserService {

	public static final UserService me = new UserService();
	final User dao = new User().dao();
	/**
	 * 分页查询
	 * @param pageNumber
	 * @param pageSize
	 * @return
	 */
	public Page<User> paginate(int pageNumber, int pageSize) {
		return dao.paginate(pageNumber, pageSize, "select *", "from user order by id asc");
	}
}
